﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Task4.aspx.cs" Inherits="Web.UI.Task4" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ObjectDataSource 
            ID="ObjectDataSource1" 
            runat="server" 
            SelectMethod="Paging"
            SelectCountMethod="CountOfRows" 
            EnablePaging="true"
            TypeName="DigDes.DSchool.SUPS.DataAccess.Database.BaseDAC">
            <SelectParameters>
                <asp:Parameter Name="maximumRows" Type="Int32" />
                <asp:Parameter Name="startRowIndex" Type="Int32" />
            </SelectParameters>
            </asp:ObjectDataSource>

        <asp:GridView ID="GridView1" 
            runat="server"
            AutoGenerateColumns="false"
            AllowPaging="true"
            maximumRows="5"
            DataSourceID="ObjectDataSource1">

            <Columns>
                <asp:BoundField DataField="CarNumber" HeaderText="CarNumber" />
                <asp:BoundField DataField="Weight" HeaderText="Weight" />
                <asp:BoundField DataField="ArrivalStation" HeaderText="ArrivalStation" />
                <asp:BoundField DataField="CargoCode" HeaderText="CargoCode" />
                <asp:BoundField DataField="ConsigneeCode" HeaderText="ConsigneeCode" />
                <asp:BoundField DataField="CarParkType" HeaderText="CarParkType" />
                <asp:BoundField DataField="DispatchStation" HeaderText="DispatchStation" />
                <asp:BoundField DataField="OperationCode" HeaderText="OperationCode" />
                <asp:BoundField DataField="OperationDate" HeaderText="OperationDate" />
                <asp:BoundField DataField="OperationYear" HeaderText="OperationYear" />
                <asp:BoundField DataField="OperationTime" HeaderText="OperationTime" />
                <asp:BoundField DataField="OperationStation" HeaderText="OperationStation" />
                <asp:BoundField DataField="RoadOfDelivery" HeaderText="RoadOfDelivery" />
                <asp:BoundField DataField="RoadOfReception" HeaderText="RoadOfReception" />
                <asp:BoundField DataField="TrainIndex" HeaderText="TrainIndex" />
                <asp:BoundField DataField="TrainNumber" HeaderText="TrainNumber" />
            </Columns>
        </asp:GridView>    
    </div>
    </form>
</body>
</html>
